home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Games Collection 1 / software vault.zip / software vault / CDR10 / YICN23.ZIP / INCLUDE / YAKLIB.H < prev    next >
C/C++ Source or Header  |  1993-01-10  |  783b  |  39 lines

  1. #ifndef YAKLIB.H
  2.  
  3. #define YAKLIB.H
  4.  
  5. #include "stddefs.h"
  6.  
  7. #include <fstream.h>
  8.  
  9. class directoryEntry
  10. {
  11. public:
  12.   char filename[15];
  13.   unsigned long index;
  14.   unsigned long size;
  15.   directoryEntry() {filename[0] = '\0'; index = 0; size = 0;};
  16. };
  17.  
  18.  
  19. class yakLib
  20. {
  21.   fstream myDataFile;
  22.   int numberOfEntries;
  23.   long directoryIndex;
  24.   char libFilename[15];
  25. public:
  26.   void open(char * filename);
  27.   yakLib(char * filename);
  28.   void getDirectoryIndex(void);
  29.   directoryEntry getIndex(char * filename);
  30.   void addFile(char *filename);
  31.   unsigned long fileSize(char * filename);
  32.   void extractFile(char *filename);
  33.   int deleteFile(char *filename);
  34.   void listFiles(void);
  35.   byte * loadToMem(char *filename);
  36. };
  37.  
  38. byte * loadDosToMem(char *filename);
  39. #endif